package com.ofek.eventos.db.datatypes;

import java.io.Serializable;
import java.util.HashMap;

import com.ofek.applicationbase.forms.question.QuestionOption;

public class Type extends QuestionOption implements Serializable {
	public long tid;
	public String title;
	public HashMap<Long,Field> typeFields;
	 public Type() {
	}
	public Type(final int tid, final String title, final HashMap<Long, Field> typeFields) {
		this.tid = tid;
		this.title = title;
		this.typeFields = typeFields;
	}
	@Override
	public String toString() {
		return title;
	}
	@Override
	public Object toAnswer() {
		return this;
	}
	@Override
	public boolean equals(final Object obj) {
		return obj instanceof Type && tid == ((Type) obj).tid;
	}
}
